<template>
	<view class="main">
		<view>
			<userCord :userInfo="userInfo"></userCord>
		</view>
		
		<!-- 功能 -->
		<Node v-for="item in node" :node="item"></Node>
	</view>
</template>

<script>
	import userCord from "../../compoent/userCord/userCord"
	import Confirm from "../../compoent/modle/confirm.vue"
	import Node from "../../compoent/node/node.vue"
	export default {
		components:{userCord,Confirm,Node},
		data() {
			return {
				userId:null,
				 userInfo:null,
				 node:null
				        
				
			}
		},
		onReady() {
			var that = this;
			uni.request({
				url:"https://app.waghost.com/api/user/myDetils/"+this.userId,
				method:"GET",
				success(va) {
					that.userInfo = va.data.data.userInfo
					that.node = va.data.data.nodes
				}
			})
		},
		onLoad(va) {
			this.userId = va.userId
		},
		methods: {
			}
	}
</script>

<style scoped>
	.main{
		
		box-sizing: border-box;padding: 15rpx;
	}
	
</style>
